export interface Submission {
  id: string;
  problem_id: number;
  problem_title: string;
  username: string;
  create_time: string;
  result: number;
  language: string;
  shared: boolean;
  statistic_info: {
    time_cost: number;
    memory_cost: number;
  };
  contest_id: number | null;
}

export interface SubmissionDetail extends Submission {
  code: string;
}

export interface StatusOption {
  name: string;
  value: number;
}

export interface SubmissionListParams {
  problem_id?: number;
  user_id?: number;
  contest_id?: number;
  status?: number;
  language?: string;
  username?: string;
  page?: number;
  limit?: number;
} 